fix(csp): allow Promptwatch analytics domain in CSP - #7998
Conversation
Promptwatch visitor tracking stopped on 2026-05-06. The script is consent-gated via CookieYes, but once activated the browser blocks it because ingest.promptwatch.com is missing from script-src and connect-src. Adds the domain to the CSP of all four apps. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughThe Content Security Policy strings in four Next.js apps (blog, docs, eclipse, site) are each updated to include ChangesCSP Allowlist Additions
Estimated code review effort: 1 (Trivial) | ~5 minutes Related PRs: None identified. Suggested labels: security, csp, config Suggested reviewers: None specified. Poem A rabbit hops through four config trees, 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
What
Adds
https://ingest.promptwatch.comto thescript-srcandconnect-srcCSP directives in all four apps (site, docs, blog, eclipse).Why
Promptwatch visitor analytics (AI referrer tracking) stopped receiving data on 2026-05-06, dropping from 400-1,000 visits/day to zero. The timing matches #7864.
The Promptwatch snippet is correctly consent-gated: it ships as
type="text/plain"and CookieYes activates it once a visitor grants analytics consent. But when CookieYes flips it live, the browser blocks it anyway because the CSP allows neither loading the script fromingest.promptwatch.com(script-src) nor sending events to it (connect-src). Other analytics vendors (GA, PostHog, LinkedIn, CookieYes itself) are allowlisted; Promptwatch is not.Scope
Verification
After deploy: accept analytics consent on prisma.io, confirm no CSP violations for
ingest.promptwatch.comin the browser console, and check that visits appear in Promptwatch Visitor Analytics.🤖 Generated with Claude Code
Summary by CodeRabbit